import { useUserInfo } from '@/stores/userInfo';

export const useMapDictList = (key:String)=>{
    const userInfoStore = useUserInfo()
    const dictList = userInfoStore.state.dictList
    const keys = Object.keys(dictList)
    if(keys.length === 0) return []
    const map = keys.find(item=> key == item )
    if(!map) return []
    return dictList[map]
}